﻿using System;
using System.Text;
using ProjScan.Tools;
using UnityEditor;
using UnityEngine;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x02000298 RID: 664
	internal class GameObjectAssetData : AssetDataBase
	{
		// Token: 0x0600115E RID: 4446 RVA: 0x00051EA8 File Offset: 0x000500A8
		public GameObjectAssetData(int dirID, GameObject linkedGameObject, string string_2)
		{
			this.dirID = dirID;
			this.gameObjectName = linkedGameObject.name;
			this.linkedGameObject = linkedGameObject;
			this.assetPath = AssetDatabase.GetAssetPath(this.linkedGameObject);
		}

		// Token: 0x0600115F RID: 4447 RVA: 0x00051F00 File Offset: 0x00050100
		public override string GetCSVHeader()
		{
			return "Name,DirID,AvgDensity,VarianceOfDensity";
		}

		// Token: 0x06001160 RID: 4448 RVA: 0x00051F18 File Offset: 0x00050118
		public override string GetInfo()
		{
			StringBuilder stringBuilder = new StringBuilder(ToolsHelper.QuoteString(this.gameObjectName));
			stringBuilder.Append(",").Append(this.dirID).Append(",").Append(this.averageDensity).Append(",").Append(this.densityVariance);
			return stringBuilder.ToString();
		}

		// Token: 0x06001161 RID: 4449 RVA: 0x000085E6 File Offset: 0x000067E6
		public override void Reset()
		{
			this.linkedGameObject = null;
		}

		// Token: 0x06001162 RID: 4450 RVA: 0x00051F84 File Offset: 0x00050184
		public override string GetAssetPath()
		{
			return this.assetPath;
		}

		// Token: 0x06001163 RID: 4451 RVA: 0x00051F84 File Offset: 0x00050184
		public override string GetFileAssetPath()
		{
			return this.assetPath;
		}

		// Token: 0x04000A1A RID: 2586
		private string gameObjectName;

		// Token: 0x04000A1B RID: 2587
		private int dirID;

		// Token: 0x04000A1C RID: 2588
		public string averageDensity = "NULL";

		// Token: 0x04000A1D RID: 2589
		public string densityVariance = "NULL";

		// Token: 0x04000A1E RID: 2590
		public GameObject linkedGameObject;

		// Token: 0x04000A1F RID: 2591
		private string assetPath;
	}
}
